<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>股权分红 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -100px;
      left: -150px;
      background: radial-gradient(circle, rgba(127, 0, 255, 0.2), rgba(127, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 30%;
      right: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--accent-color);
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 股权概览卡片 */
    .shares-overview {
      position: relative;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .card-decoration {
      position: absolute;
      top: 0;
      right: 0;
      width: 120px;
      height: 120px;
      opacity: 0.1;
    }

    .overview-title {
      font-size: 16px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 15px;
      position: relative;
      z-index: 1;
    }

    .overview-data {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      position: relative;
      z-index: 1;
    }

    .data-item {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
    }

    .item-value {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .pool-value {
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .dividend-value {
      background: var(--secondary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .item-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .overview-status {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      z-index: 1;
    }

    .status-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .status-value {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 3px;
    }

    .status-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 我的股权卡片 */
    .my-shares {
      position: relative;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .shares-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .shares-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .shares-title i {
      color: var(--accent-color);
    }

    .shares-info {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .share-slots {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-bottom: 20px;
    }

    .share-slot {
      width: 50px;
      height: 50px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .share-active {
      background: var(--primary-gradient);
      box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
    }

    .share-icon {
      font-size: 20px;
      color: var(--text-secondary);
    }

    .share-active .share-icon {
      color: var(--text-light);
    }

    .share-number {
      position: absolute;
      bottom: -5px;
      right: -5px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--accent-color);
      color: var(--dark-bg);
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .share-income {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 15px;
    }

    .income-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 14px;
    }

    .income-title {
      color: var(--text-secondary);
    }

    .income-value {
      color: var(--accent-color);
      font-weight: 500;
    }

    .income-progress {
      height: 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 100px;
      overflow: hidden;
      margin-bottom: 10px;
    }

    .income-bar {
      height: 100%;
      width: 42%;
      background: var(--primary-gradient);
      border-radius: 100px;
    }

    .income-target {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .exchange-button {
      width: 100%;
      padding: 12px;
      border-radius: 100px;
      background: var(--secondary-gradient);
      color: var(--dark-bg);
      font-size: 16px;
      font-weight: 600;
      text-align: center;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px rgba(0, 245, 160, 0.3);
    }

    .exchange-button:active {
      transform: translateY(2px);
      box-shadow: 0 2px 8px rgba(0, 245, 160, 0.3);
    }

    /* 数据图表 */
    .chart-section {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .chart-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .chart-title i {
      color: var(--accent-color);
    }

    .time-filter {
      display: flex;
      gap: 8px;
    }

    .time-option {
      padding: 3px 10px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.05);
      font-size: 12px;
      color: var(--text-secondary);
    }

    .time-option.active {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    .chart-container {
      height: 200px;
      margin-bottom: 15px;
      position: relative;
    }

    .chart-legend {
      display: flex;
      justify-content: center;
      gap: 20px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .legend-color {
      width: 12px;
      height: 12px;
      border-radius: 3px;
    }

    .color-primary {
      background: var(--primary-color);
    }

    .color-secondary {
      background: var(--secondary-color);
    }

    /* 幸运星兑换 */
    .lucky-stars {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .stars-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .stars-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .stars-title i {
      color: var(--accent-color);
    }

    .stars-count {
      color: var(--accent-color);
      font-weight: 600;
    }

    .stars-exchange {
      display: flex;
      align-items: center;
      gap: 15px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
    }

    .stars-icons {
      display: flex;
      gap: 5px;
    }

    .star-icon {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .star-active {
      color: var(--accent-color);
    }
    
    .star-inactive {
      color: rgba(255, 255, 255, 0.3);
    }

    .exchange-arrow {
      font-size: 20px;
      color: var(--text-secondary);
    }

    .share-result {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--primary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-light);
      font-size: 18px;
      box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
    }

    .exchange-action {
      flex: 1;
      text-align: center;
    }

    .exchange-now {
      padding: 8px 16px;
      border-radius: 100px;
      background: var(--accent-color);
      color: var(--dark-bg);
      font-size: 12px;
      font-weight: 600;
      display: inline-block;
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }

    .middle-button {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      color: var(--text-light);
      box-shadow: 0 5px 15px rgba(127, 0, 255, 0.4);
      margin-top: -25px;
    }

    /* 动画效果 */
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    .share-active {
      animation: pulse 2s infinite;
    }

    /* 响应式调整 */
    @media (max-width: 375px) {
      .share-slot {
        width: 45px;
        height: 45px;
      }
      
      .item-value {
        font-size: 22px;
      }
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="index.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">股权分红</div>
      <div class="header-actions">
        <i class="fas fa-question-circle"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 股权概览卡片 -->
      <section class="shares-overview">
        <i class="fas fa-chart-pie card-decoration"></i>
        <h2 class="overview-title">股权池概览</h2>
        <div class="overview-data">
          <div class="data-item">
            <div class="item-value pool-value">¥128,500</div>
            <div class="item-label">当前股池总额</div>
          </div>
          <div class="data-item">
            <div class="item-value dividend-value">¥1,285</div>
            <div class="item-label">今日每股分红</div>
          </div>
        </div>
        <div class="overview-status">
          <div class="status-item">
            <div class="status-value">100</div>
            <div class="status-label">总股数</div>
          </div>
          <div class="status-item">
            <div class="status-value">78</div>
            <div class="status-label">已分配</div>
          </div>
          <div class="status-item">
            <div class="status-value">22</div>
            <div class="status-label">剩余股数</div>
          </div>
        </div>
      </section>

      <!-- 我的股权卡片 -->
      <section class="my-shares">
        <div class="shares-header">
          <div class="shares-title">
            <i class="fas fa-chart-pie"></i>
            <span>我的股权</span>
          </div>
          <div class="shares-info">单股收益上限：¥2,500</div>
        </div>
        <div class="share-slots">
          <div class="share-slot share-active">
            <i class="fas fa-chart-pie share-icon"></i>
            <span class="share-number">1</span>
          </div>
          <div class="share-slot">
            <i class="fas fa-chart-pie share-icon"></i>
          </div>
          <div class="share-slot">
            <i class="fas fa-chart-pie share-icon"></i>
          </div>
          <div class="share-slot">
            <i class="fas fa-chart-pie share-icon"></i>
          </div>
          <div class="share-slot">
            <i class="fas fa-chart-pie share-icon"></i>
          </div>
        </div>
        <div class="share-income">
          <div class="income-header">
            <div class="income-title">当前收益进度</div>
            <div class="income-value">¥1,050 / ¥2,500</div>
          </div>
          <div class="income-progress">
            <div class="income-bar"></div>
          </div>
          <div class="income-target">
            <span>0</span>
            <span>到达2500元后可退出重新获取</span>
          </div>
        </div>
        <button class="exchange-button">查看我的分红明细</button>
      </section>
        <!-- 幸运星兑换 -->
        <section class="lucky-stars">
          <div class="stars-header">
            <div class="stars-title">
              <i class="fas fa-star"></i>
              <span>幸运星兑换</span>
            </div>
            <div class="stars-count">当前拥有：2颗</div>
          </div>
          <div class="stars-exchange">
            <div class="stars-icons">
              <div class="star-icon">
                <i class="fas fa-star" style="color: var(--accent-color);"></i>
              </div>
              <div class="star-icon">
                <i class="fas fa-star" style="color: var(--accent-color);"></i>
              </div>
              <div class="star-icon">
                <i class="fas fa-star" style="color: rgba(255, 255, 255, 0.3);"></i>
              </div>
              <div class="star-icon">
                <i class="fas fa-star" style="color: rgba(255, 255, 255, 0.3);"></i>
              </div>
              <div class="star-icon">
                <i class="fas fa-star" style="color: rgba(255, 255, 255, 0.3);"></i>
              </div>
            </div>
            <div class="exchange-arrow">
              <i class="fas fa-arrow-right"></i>
            </div>
            <div class="share-result">
              <i class="fas fa-chart-pie"></i>
            </div>
            <div class="exchange-action">
              <button class="exchange-now">兑换</button>
            </div>
          </div>
        </section>
      <!-- 数据图表 -->
      <section class="chart-section">
        <div class="chart-header">
          <div class="chart-title">
            <i class="fas fa-chart-line"></i>
            <span>分红趋势</span>
          </div>
          <div class="time-filter">
            <div class="time-option">周</div>
            <div class="time-option active">月</div>
            <div class="time-option">年</div>
          </div>
        </div>
        <div class="chart-container">
          <canvas id="dividendChart"></canvas>
        </div>
        <div class="chart-legend">
          <div class="legend-item">
            <div class="legend-color color-primary"></div>
            <span>股池总额</span>
          </div>
          <div class="legend-item">
            <div class="legend-color color-secondary"></div>
            <span>每股分红</span>
          </div>
        </div>
      </section>

    
    </main>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button active">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 初始化图表
      const ctx = document.getElementById('dividendChart').getContext('2d');
      
      const poolData = [115000, 118500, 120000, 121500, 123000, 125000, 128500];
      const dividendData = [1150, 1185, 1200, 1215, 1230, 1250, 1285];
      const labels = ['09-01', '09-05', '09-10', '09-15', '09-20', '09-25', '09-30'];
      
      const poolGradient = ctx.createLinearGradient(0, 0, 0, 200);
      poolGradient.addColorStop(0, 'rgba(127, 0, 255, 0.5)');
      poolGradient.addColorStop(1, 'rgba(127, 0, 255, 0)');
      
      const dividendGradient = ctx.createLinearGradient(0, 0, 0, 200);
      dividendGradient.addColorStop(0, 'rgba(0, 245, 160, 0.5)');
      dividendGradient.addColorStop(1, 'rgba(0, 245, 160, 0)');
      
      const chart = new Chart(ctx, {
        type: 'line',
        data: {
          labels: labels,
          datasets: [{
            label: '股池总额',
            data: poolData,
            borderColor: '#7F00FF',
            backgroundColor: poolGradient,
            borderWidth: 2,
            fill: true,
            tension: 0.4,
            pointBackgroundColor: '#7F00FF',
            pointBorderColor: '#fff',
            pointRadius: 4,
            pointHoverRadius: 6
          }, {
            label: '每股分红',
            data: dividendData,
            borderColor: '#00F5A0',
            backgroundColor: dividendGradient,
            borderWidth: 2,
            fill: true,
            tension: 0.4,
            pointBackgroundColor: '#00F5A0',
            pointBorderColor: '#fff',
            pointRadius: 4,
            pointHoverRadius: 6,
            yAxisID: 'y1'
          }]
        },
        options: {
          responsive: true,
          maintainAspectRatio: false,
          plugins: {
            legend: {
              display: false
            },
            tooltip: {
              mode: 'index',
              intersect: false,
              backgroundColor: 'rgba(45, 27, 105, 0.9)',
              titleColor: '#fff',
              bodyColor: '#E0D5FF',
              borderColor: 'rgba(255, 255, 255, 0.18)',
              borderWidth: 1,
              displayColors: true,
              padding: 10,
              titleFont: {
                size: 14,
                weight: 'bold'
              },
              bodyFont: {
                size: 12
              },
              callbacks: {
                label: function(context) {
                  let label = context.dataset.label || '';
                  if (label) {
                    label += ': ';
                  }
                  if (context.datasetIndex === 0) {
                    label += '¥' + context.raw.toLocaleString();
                  } else {
                    label += '¥' + context.raw;
                  }
                  return label;
                }
              }
            }
          },
          scales: {
            x: {
              grid: {
                display: false,
                drawBorder: false
              },
              ticks: {
                color: 'rgba(224, 213, 255, 0.7)',
                font: {
                  size: 10
                }
              }
            },
            y: {
              position: 'left',
              grid: {
                color: 'rgba(255, 255, 255, 0.05)',
                drawBorder: false
              },
              ticks: {
                color: 'rgba(224, 213, 255, 0.7)',
                font: {
                  size: 10
                },
                callback: function(value) {
                  return '¥' + (value / 1000) + 'k';
                }
              }
            },
            y1: {
              position: 'right',
              grid: {
                display: false,
                drawBorder: false
              },
              ticks: {
                color: 'rgba(224, 213, 255, 0.7)',
                font: {
                  size: 10
                },
                callback: function(value) {
                  return '¥' + value;
                }
              }
            }
          }
        }
      });
      
      // 时间筛选功能
      const timeOptions = document.querySelectorAll('.time-option');
      
      timeOptions.forEach(option => {
        option.addEventListener('click', function() {
          timeOptions.forEach(opt => opt.classList.remove('active'));
          this.classList.add('active');
          
          // 根据选择的时间选项更新图表
          if (this.textContent === '周') {
            updateChartData([123000, 123500, 124000, 124200, 124500, 125000, 125500], 
                           [1230, 1235, 1240, 1242, 1245, 1250, 1255],
                           ['09-24', '09-25', '09-26', '09-27', '09-28', '09-29', '09-30']);
          } else if (this.textContent === '月') {
            updateChartData([115000, 118500, 120000, 121500, 123000, 125000, 128500],
                           [1150, 1185, 1200, 1215, 1230, 1250, 1285],
                           ['09-01', '09-05', '09-10', '09-15', '09-20', '09-25', '09-30']);
          } else if (this.textContent === '年') {
            updateChartData([80000, 90000, 100000, 110000, 120000, 128500],
                           [800, 900, 1000, 1100, 1200, 1285],
                           ['04-01', '05-01', '06-01', '07-01', '08-01', '09-01']);
          }
        });
      });
      
      function updateChartData(poolData, dividendData, labels) {
        chart.data.labels = labels;
        chart.data.datasets[0].data = poolData;
        chart.data.datasets[1].data = dividendData;
        chart.update();
      }
      
      // 幸运星兑换功能
      const exchangeButton = document.querySelector('.exchange-now');
      
      exchangeButton.addEventListener('click', function() {
        // 当前只有2颗星，不足以兑换
        alert('您当前只有2颗幸运星，还差3颗才能兑换1股股权。\n继续参与拼团获得更多幸运星吧！');
      });
      
      // 股权详情按钮功能
      const detailButton = document.querySelector('.exchange-button');
      
      detailButton.addEventListener('click', function() {
        alert('查看分红明细功能即将上线，敬请期待！');
      });
      
      // 页面加载动画
      const mainContent = document.querySelector('.content');
      const sections = mainContent.querySelectorAll('section');
      
      sections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 